import request from "..";
import { IAccount } from "./type";
export function accountLogin(data:IAccount) {
  return request.post({
    url: '/login',
    data
  })
}
export function getUserInfo(id: number) {
  return request.get({
    url: "/users/"+id
  })
}
export function getUserRole(id: number) {
  return request.get({
    url:`role/${id}/menu`
  })
}